package com.tgy.链表;

/***
 * @ClassName: Test
 * @Description:
 * @Auther: tanggy3
 * @Date: 16:59 2022/7/5
 * @version : V1.0
 */
public class Test {
    public static void main(String[] args) {


            String s = String.valueOf(null);
            System.out.println(s);




        Dog dog = new Dog(1, "汪");
        Dog dog1 = new Dog();
        dog1 = dog;
        Dog dog2 = dog;
        dog2.name = "汪汪汪";
        System.out.println(dog1);
        System.out.println(dog2);
        System.out.println(dog == dog2);
        System.out.println(dog1 == dog2);
    }
}
class Dog{
    Integer no;
    String name;

    public Dog(Integer no, String name) {
        this.no = no;
        this.name = name;
    }

    public Dog() {
    }

    @Override
    public String toString() {
        return "Dog{" +
                "no=" + no +
                ", name='" + name + '\'' +
                '}';
    }
}
